if (liczba_zamowionych_ksiazek == 0)
{
  location.replace("bookstore.htm");
}